import base from '@/api/baseurl';
import request from '@/utils/request'


/**
 * 获取曲线期限列表 /CurveTerm/queryTermScheme
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermScheme(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermScheme',
    method: 'get',
    params: query
  })
}

export function fetchBasicPrice(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BasicCurve/findBasicPriceSet',
    method: 'get',
    params: query
  })
}


/**
 * 获取曲线期限设置列表 /CurveTerm/queryTermPrice
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermPrice(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermPrice',
    method: 'get',
    params: query
  })
}


export function addBasicPrice(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BasicCurve/addBasicPriceSet',
    method: 'post',
    data
  })
}


export function updateBasicPrice(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BasicCurve/updateBasicPriceSet',
    method: 'post',
    data
  })
}

//单行删除
export function deleteBasicPrice(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BasicCurve/deleteBasicPrice',
    method: 'get',
    params: query
  })
}



